package com.asj.house.controller;


import com.asj.house.returns.RespEntity;
import com.asj.house.service.HouseRoomRecommendService;
import com.asj.house.vo.result.RoomRecommendResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 房屋推荐表 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-03-05
 */
@RestController
@RequestMapping("/house-room-recommend")
@Api(value = "房源推荐接口", tags = "房源推荐接口")
@Slf4j
public class HouseRoomRecommendController {

    @Resource
    private HouseRoomRecommendService houseRoomRecommendService;

    @GetMapping("/list")
    @ApiOperation(value = "房源推荐列表")
    public RespEntity<List<RoomRecommendResult>> houseRoomRecommendList() {
        RespEntity<List<RoomRecommendResult>> respEntity = houseRoomRecommendService.roomRecommendList();
        return respEntity;
    }

}
